package state.improve.states;

import state.improve.AbstractState;
import state.improve.ElevatorManager;

public class RunState extends AbstractState {
    private ElevatorManager elevatorManager;

    public RunState(ElevatorManager elevatorManager) {
        this.elevatorManager = elevatorManager;
    }

    @Override
    public void stop() {
        System.out.println("停止电梯");
        elevatorManager.setState(elevatorManager.getStopState());
    }
}
